﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Graphing.View;
using Graphing;

namespace Graphing.Services
{
    /*
     * Window Opening Service
     */
    public class IWindowOpenService
    {

        #region Properties
        
        public EditPointsView EditPointsView { get; set; }
        public GraphView GraphView { get; set; }

        #endregion // Properties.
        

        #region OpenView
        //Opens the view based on the viewName sent in
        public bool OpenView(string viewName)
        {
            switch (viewName)
            {
                case "EditPointsView":
                    EditPointsView = new EditPointsView();
                    EditPointsView.ShowDialog();
                    return true;

                case "GraphView":
                    GraphView = new GraphView();
                    GraphView.Show();
                    return true;
            }
            
            return false;
        }
        #endregion //OpenView




    }
}
